<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Hotel_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hotel_id" data-rule="required" data-source="hotel/index" data-field="hotel_name" data-params='{"custom[status]":1,"custom[status_real]":1}' class="form-control selectpage" name="row[hotel_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('城市')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-city_id" data-rule="required" data-source="area/index" data-params='{"custom[level]":2}' class="form-control selectpage" name="row[city_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_name" data-rule="" class="form-control" name="row[job_name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[job_date]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-job_type" data-rule="required" class="form-control selectpicker" name="row[job_type]">
                {foreach name="jobTypeList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" id="job_top_start" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_top_start')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_top_start"  class="form-control datetimepicker" data-date-format="HH" name="row[job_top_start]" type="text">
        </div>
    </div>
    <div class="form-group" id="job_top_end" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_top_end')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_top_end" class="form-control datetimepicker" data-date-format="HH" name="row[job_top_end]" type="text">
        </div>
    </div>
    <div class="form-group" id="job_down_start" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_down_start')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_down_start" class="form-control datetimepicker" data-date-format="HH" name="row[job_down_start]" type="text">
        </div>
    </div>
    <div class="form-group" id="job_down_end" style="display: none">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_down_end')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_down_end" class="form-control datetimepicker" data-date-format="HH" name="row[job_down_end]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_price" data-rule="required" class="form-control" name="row[job_price]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_time_hour')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_time_hour" data-rule="required" class="form-control" name="row[job_time_hour]" type="number" value="4">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_people')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_people" data-rule="required" class="form-control" name="row[job_people]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_arrival_datetime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_arrival_datetime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm" data-use-current="true" name="row[job_arrival_datetime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_condition')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-job_condition" data-rule="required" class="form-control " rows="5" name="row[job_condition]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_hotel_introduce')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-job_hotel_introduce" data-rule="required" class="form-control editor" rows="5" name="row[job_hotel_introduce]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_location" data-rule="required" class="form-control" name="row[job_location]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_route')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_route" data-rule="required" class="form-control" name="row[job_route]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_is_group')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-job_is_group" data-rule="required" class="form-control selectpicker" name="row[job_is_group]">
                {foreach name="jobIsGroupList" item="vo"}
                <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group" id="job_user_group_id" style="display: none;">
        <label class="control-label col-xs-12 col-sm-2">{:__('Job_user_group_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-job_company_group_id" data-source="company/index" data-params='{"custom[status]":1}' data-field="company_name" class="form-control selectpage" name="row[job_company_group_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-3 col-sm-2">{:__('Job_company_id')}:</label>
        <div class="col-xs-3 col-sm-3">
            <input id="c-job_company_id" data-rule="required" data-source="company/index" data-params='{"custom[status]":1}' data-field="company_name" class="form-control selectpage" name="row[job_company_id]" type="text" value="">
        </div>
        <div class="col-xs-3 col-sm-3">
            <a href="{:url('company/add')}" class="btn btn-add btn-success btn-dialog" data-title="添加签约公司">添加签约公司</a>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Job_speed')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-job_speed" class="form-control" name="row[job_speed]" type="number">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            -->
<!--            <div class="radio">-->
<!--            {foreach name="statusList" item="vo"}-->
<!--            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> -->
<!--            {/foreach}-->
<!--            </div>-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
